/* eslint-disable eol-last */
/* eslint-disable no-unused-vars */
/* eslint-disable space-before-function-paren */
var fs = require('fs')
var path = require('path')

function resolve(dir) {
    return path.join(__dirname, '..', dir)
}
var qurConfig = {
    target: 'dist/pdm.layout.js',
    origin: 'pdm.layout.js'
}

function copy(obj) {
    fs.createReadStream(obj.origin).pipe(fs.createWriteStream(obj.target))
    console.log('\x1B[32m%s\x1B[39m', '复制成功--------' + obj.name)
}
copy(qurConfig)